package com.lsh.oms.core.service.tool;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Getter;

import java.io.Serializable;
import java.util.List;

/**
 * @author peter
 */
@Getter
public class TmsPageable<T> implements Serializable {

    private static final long serialVersionUID = 1596448441568743910L;

    private List<T> entries;

    @JSONField(name = "rn")
    private Integer page;

    @JSONField(name = "total_num")
    private Long totalCount;

    public TmsPageable(List<T> entries, Integer page, Long totalCount) {
        this.entries = entries;
        this.page = page;
        this.totalCount = totalCount;
    }
}
